
package com.android.fitnesscenter.utils;

public class TimerHelper {

    public static String formatTime(String timeStr) {
        String[] timeStrs = timeStr.split(" ");
        String yyyymmdd = timeStrs[0];
        String[] nTimeStrs = yyyymmdd.split("-");
        String yyyy = nTimeStrs[0];
        String mm = nTimeStrs[1];
        String dd = nTimeStrs[2];
        String nTime = yyyy + "年" + mm + "月" + dd + "日";
        return nTime;
    }

    public static void main(String[] args) {
        System.out.println(formatTime("2014-11-12 21:12:09"));
    }
}
